package com.sac.emp.service.impl;

import com.sac.emp.dao.EmpDao;
import com.sac.emp.domain.Employee;
import com.sac.emp.service.EmpService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class EmpServiceImpl implements EmpService{

	@Autowired
	private EmpDao empDao;
	
	@Override
	public List<Employee> getAllEmp(String fullName) {

//		int empCount = empDao.count();
//		System.out.println("搜索出职员:"+empCount);
		return empDao.getAllEmp(fullName);
	}

	@Override
	public Employee getEmpDetailInfoByName(String fullName){
		return empDao.getEmpDetailInfoByName(fullName);
	}

	@Override
	public Employee getEmpDetailInfo(String empId){
		return empDao.getEmpDetailInfo(empId);
	}

}
